package com.mrzhang.glpteureka.common.config;

import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * 使用Security保护微服务注册中心
 * @Autor 张霄峰
 * @CreateTime 2020-04-06
 */
@EnableWebSecurity
public class GlptEurekaWebSecurityConfig extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.csrf().ignoringAntMatchers("/**","/eureka","/eureka/**");
        super.configure(http);
    }
}
